package com.job.feign.client.company;

import com.job.client.common.result.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "client-company-service",path = "/api/v1/client/company")
public interface CompanyFeign {
    @GetMapping("/{companyId}")
    public ResponseResult getCompanyById(@PathVariable String companyId);

    @PostMapping("/authentication")
    public ResponseResult userIsAuth(@RequestBody String userId);
    @PostMapping("/info/list")
    public ResponseResult getCompanyInfoByList(@RequestBody List<String> companyIds);
}
